package zhh.tangbao.commodity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 2023/2/26
 * @author 粥灰灰
 * @version 1.0
 * 订单的商品内容
 */

@TableName(value = "commodity_order_content")
@Data
public class CommodityOrderContent {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 关联的订单ID */
    private String commodityOrderId;

    /** 关联的商品实体ID */
    private String commodityEntityId;

    /** 此订单内商品的出售数量 */
    private Integer commodityEntityCount;

    /** 单价 */
    private Double commodityEntityPrice;

    /** 该部分的总价格 */
    private Double commodityContentTotalPrice;

    /** 该部分是属于哪个售货机的 */
    private String commodityMachineId;

    /** 该部分是否已取货 */
    private Integer pickupStatus;

    /** 通过库存记录ID快速锁定商品ID或者当前商品所在的售货机ID */
    private Integer stockId;
}
